package com.auto.sns.core.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.core.domain.SnsCoreUserRelaMap;
import com.auto.sns.core.domain.SnsCoreUserRelaMapExtend;
import com.auto.sns.core.dao.ISnsCoreUserRelaMapDAO;
import com.system.util.PersistUtil;
import com.auto.sns.core.sql.sqlid.SnsCoreUserRelaMapSqlID;
/**
 * : t_auto_sns_core_user_rela_map
 * 
 * 
 * @author Gen
 */
public class SnsCoreUserRelaMapDAOImpl implements ISnsCoreUserRelaMapDAO{

	public SnsCoreUserRelaMap insertSnsCoreUserRelaMap(SnsCoreUserRelaMap bean){
		return PersistUtil.insert(bean, SnsCoreUserRelaMapSqlID.INSERT);
	}

	public boolean deleteSnsCoreUserRelaMap(String scurGuid){
		PersistUtil.delete(scurGuid, SnsCoreUserRelaMapSqlID.DELETE);
		return true;
	}	

	public SnsCoreUserRelaMap updateSnsCoreUserRelaMap(SnsCoreUserRelaMap bean){
		return PersistUtil.update(bean, SnsCoreUserRelaMapSqlID.UPDATE);
	}	

	public SnsCoreUserRelaMap loadSnsCoreUserRelaMap(String scurGuid){
		return PersistUtil.query(new SnsCoreUserRelaMap().getClass(), scurGuid);
	}

	public List<SnsCoreUserRelaMap> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsCoreUserRelaMapSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsCoreUserRelaMapSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

	public List<SnsCoreUserRelaMapExtend> querySnsCoreUserRelaMapExtendList(Map<String, Object> param, Page page) {
		page.setCount(PersistUtil.countSpecial(param, SnsCoreUserRelaMapSqlID.QUERY_SNS_USER_EXTEND));
		return PersistUtil.querySpecial(param, SnsCoreUserRelaMapSqlID.QUERY_SNS_USER_EXTEND, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
